<?php

use Doctrine_Fuel\Doctrine_Fuel;

/**
 * The Welcome Controller.
 *
 * A basic controller example. Has examples of how to set the
 * response body and status.
 *
 * @package app
 *          @extends Controller
 */
class Controller_User extends Controller
{

    public function action_create ()
    {
        Package::load('doctrine2');
        
        $em = Doctrine_Fuel::manager();
        
        $asp_u = new Model_Aspnet_Users();
        $asp_u->UserName = 'tientm1';
        $asp_u->LoweredUserName = 'tientm1';
        $asp_u->LastActivityDate = date('Y-m-d H:i:s');
        $asp_u->Password = md5('1234567');
        $asp_u->Email = 'tientm1@sgame.vn';
        $asp_u->Uid = 1000001;
        
        $em->persist($asp_u);
        Debug::dump($em->flush());
        die();
    }
}